package com.shop.controller;

import com.shop.dto.*;
import com.shop.service.CartService;
import com.shop.service.OrderingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author wzby
 * @Date: 2022/11/29 14:03
 */
@RestController
@RequestMapping("/api/order")
public class OrderingController {
    @Autowired
    private OrderingService orderingService;

    @PostMapping
    public OrderingOkDto ordering(@RequestBody OrderingDto orderingDto) throws Exception {
        return orderingService.ordering(orderingDto);
    }

}
